<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<#include "lib/lib.html" />
<title>任务列表详情</title>
</head>
<body>
	<nav class="breadcrumb">
	 	 <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>任务记录列表
		 <a  class="btn btn-success radius r mr-20"  style="line-height: 1.6em; margin-top: 3px" href="javascript:location.replace(location.href);" title="刷新">
		 <i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="pd-20 text-c">
		<div class="text-c">
			<form action="${basePath}/Wmpchecking/taskList.do">
			<input type="hidden" value="${(sponsorCode)!''}" id="sponsorCode" name="sponsorCode"/>
		     	     拨款时间段：
		     	  <input  name="startime"  type="text" value="${startime!}" onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'logmax\')}'})" id="logmin" class="input-text Wdate" style="width:120px;">
				  <span>--</span>
				  <input type="text" name="endtime"   value="${endtime!}"  onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'logmin\')}'})" id="logmax" class="input-text Wdate" style="width:120px;">	
				<button name="" id="" class="btn btn-success" type="submit"> <i class="Hui-iconfont">&#xe665;</i> 搜索 </button>
			</form>
		</div>
	</div>
	<div class="pd-20">
		<!-- <div class="text-c">
			<h2>sdk接入商列表</h2>
		</div> -->
		<input type="hidden" value="${(sponsorId)!''}" id="sponsorId" name="sponsorId"/>
		<div class="mt-20" id="view1">
			<table class="table table-border table-bordered table-hover table-bg"><!-- table-sort -->
				<thead>
					<tr class="text-c">
						<th width="20">ID</th>
						<th width="70">用户Code</th>
						<th width="70">用户手机</th>
						<th width="70">任务时间</th>
					</tr>
				</thead>
				<tbody>
                    <#if list??&&list?size gt 0> 
					<#list list as ls>
					<tr class="text-c" >
						<td>${ls_index+1}</td>
						<td>${ls.userid}</td>
						<td>${ls.mobile}</td>
						<td>
							<#if ls.createtime??>
								${ls.createtime}
							</#if>
						</td>
						<!-- <td class="td-manage">
								<a title="通过" href="javascript:;" onclick="audit('${ls.id}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe615;</i></a> 
							<#if ls.taskStatus!=0>
								<a title="拒绝" href="javascript:;" onclick="merchant_edit('拒绝','${basePath}/userTask/jumpDetailTx.do?id=${ls.id}','500','401')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe631;</i></a>
							</#if>
								<a title="查看详情" href="javascript:;" onclick="merchant_detail('商户详情','${basePath}/BussMerchantBaseinfo/jumpDetail.do?id=${ls.id}','1000','650')" class="ml-5" style="text-decoration:none">对账</a>
						</td> -->
					</tr>
					</#list> 
					</#if>
				</tbody>
			</table>
		</div>
	</div>
	<#if pageCount??>
			<div class="page_list" align="center"></div>
	</#if>
</body>
<script type="text/javascript">		
	 $(function(){
		 laypage({
		 	    cont: $('.page_list'), //容器。值支持id名、原生dom对象，jquery对象,
			    pages: ${pageCount! }, //总页数
		 	    //skip: true, //是否开启跳页
		    //skin: 'molv',
		 	    groups: 10, //连续显示分页数
		 	    first: '首页', //若不显示，设置false即可
		 	    last: '尾页', //若不显示，设置false即可
		 	    curr:${curPage!},
		 	   //prev: '<', //若不显示，设置false即可
		 	   //next: '>', //若不显示，设置false即可
		 	   // hash: true, //开启hash
		 	   skin:'#241a08',
		 	    jump: function(obj,first){ //触发分页后的回调
		 	       // $('.view').html('目前正在第'+ obj.curr +'页，一共有：'+ obj.pages +'页');
		 	    	if( !first){
		 	         	 window.location.href="${basePath}/Wmpchecking/taskList.do?sponsorCode="+'${(sponsorCode)!''}' +"&pageSize=10&pageIndex="+obj.curr;
		 	    	}
		 	    }
		 	}); 
		
		
		
		
		$('.table-sort').dataTable({
			"aaSorting": [[ 1, "desc" ]],//默认第几个排序
			"bStateSave": true,//状态保存
			"aoColumnDefs": [
			  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
			  {"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
			]
		});
		$('.table-sort tbody').on( 'click', 'tr', function () {
			if ( $(this).hasClass('selected') ) {
				$(this).removeClass('selected');
			}
			else {
				table.$('tr.selected').removeClass('selected');
				$(this).addClass('selected');
			}
		});	
	});
</script>
</html>